<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Banner_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-banner_image" data-rule="required" class="form-control" size="50" name="row[banner_image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-banner_image" class="btn btn-danger faupload" data-input-id="c-banner_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-banner_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-banner_image" class="btn btn-primary fachoose" data-input-id="c-banner_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-banner_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-banner_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-detail_image" data-rule="required" class="form-control" size="50" name="row[detail_image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-detail_image" class="btn btn-danger faupload" data-input-id="c-detail_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-detail_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-detail_image" class="btn btn-primary fachoose" data-input-id="c-detail_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-detail_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-detail_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-detail_images" class="form-control" size="50" name="row[detail_images]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-detail_images" class="btn btn-danger faupload" data-input-id="c-detail_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-detail_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-detail_images" class="btn btn-primary fachoose" data-input-id="c-detail_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-detail_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-detail_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Produce_time')}:</label>
        <div class="col-xs-12 col-sm-8">
          <!--<input id="c-produce_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[produce_time]" type="text" value="{:date('Y-m-d H:i:s')}">-->
            <input id="c-produce_atime" class="form-control" name="row[produce_atime]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fly_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fly_atime" class="form-control" name="row[fly_atime]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sit_total')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sit_total" data-rule="required" class="form-control" name="row[sit_total]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cabin_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-cabin_image" class="form-control" size="50" name="row[cabin_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-cabin_image" class="btn btn-danger faupload" data-input-id="c-cabin_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-cabin_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-cabin_image" class="btn btn-primary fachoose" data-input-id="c-cabin_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-cabin_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-cabin_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Special_str')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="firsttpl" data-name="row[special_str]" id="first-table">
                <tr>
                    <td>{:__('属性')}</td>
                    <td>{:__('值')}</td>
                </tr>
            </table>

            <textarea name="row[special_str]" class="form-control hidden" cols="30" rows="5">[{"title":"机身长度","intro":""},{"title":"机身高度","intro":""},{"title":"翼展长度","intro":""}]</textarea>
            <script id="firsttpl" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][title]" readonly class="form-control" size="15" value="<%=row.title%>" placeholder="属性"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" size="15" value="<%=row.intro%>" placeholder="内容"/></td>
                </tr>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_str')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="twotpl" data-name="row[delivery_str]" id="two-table">
                <tr>
                    <td>{:__('属性')}</td>
                    <td>{:__('值')}</td>
                </tr>
            </table>

            <textarea name="row[delivery_str]" class="form-control hidden" cols="30" rows="5">[{"title":"最大载客量","intro":""},{"title":"行李仓容积","intro":""}]</textarea>
            <script id="twotpl" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][title]" readonly class="form-control" size="15" value="<%=row.title%>" placeholder="属性"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" size="15" value="<%=row.intro%>" placeholder="内容"/></td>
                </tr>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Motor_str')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="threetpl" data-name="row[motor_str]" id="three-table">
                <tr>
                    <td>{:__('属性')}</td>
                    <td>{:__('值')}</td>
                </tr>
            </table>

            <textarea name="row[motor_str]" class="form-control hidden" cols="30" rows="5">[{"title":"型号","intro":""},{"title":"推力","intro":""}]</textarea>
            <script id="threetpl" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][title]" readonly class="form-control" size="15" value="<%=row.title%>" placeholder="属性"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" size="15" value="<%=row.intro%>" placeholder="内容"/></td>
                </tr>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sail_str')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table fieldlist" data-template="fourtpl" data-name="row[sail_str]" id="four-table">
                <tr>
                    <td>{:__('属性')}</td>
                    <td>{:__('值')}</td>
                </tr>
            </table>

            <textarea name="row[sail_str]" class="form-control hidden" cols="30" rows="5">[{"title":"最大航程","intro":""},{"title":"最大航速","intro":""},{"title":"实用升限","intro":""}]</textarea>
            <script id="fourtpl" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][title]" readonly class="form-control" size="15" value="<%=row.title%>" placeholder="属性"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" size="15" value="<%=row.intro%>" placeholder="内容"/></td>
                </tr>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
